package com.spring.demo3.eg6;

import com.spring.demo3.eg4.IService;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ComponentScans;
import org.springframework.context.annotation.FilterType;

/**
 * @author vhans
 */
// 重复使用@ComponentScan注解:合并写
@ComponentScans({
        @ComponentScan(basePackages = "com.spring.demo3.eg4"),
        @ComponentScan(
                includeFilters = {@ComponentScan.Filter(type = FilterType.ASSIGNABLE_TYPE, classes = IService.class)})
})
public class ScanBean9 {
}
